<?php
class FriendRecommendAction extends SzAbstractAction {
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * 获取好友推荐列表
     */
    public function execute($userId, $reqTime)
    {
        if (!GameService::get()->verifySysUnlock($userId, GameConst::FUNC_FRIEND_FUNC)) {
            return $this->buildResponse(false);
        }

        $recommendList = FriendService::get()->getFriendRecommendList($userId);
        return $this->buildResponse([
            'recommendList' => $recommendList
        ]);
    }
}